package com.wl4g.sample.callgo.sample3;

import com.wl4g.sample.callgo.utils.JNAGoType;

/**
 * {@link App3}
 * 
 * @author Wangl.sir &lt;wanglsir@gmail.com, 983708408@qq.com&gt;
 * @version 2020年6月21日 v1.0.0
 * @see https://java-native-access.github.io/jna/4.2.1/overview-summary.html
 * @see https://github.com/senx/warp10-ext-jnago
 */
public class App3 {

	public static void main(String[] args) throws Exception {
		System.out.println("Method to call string type parameter and return of golang ...");
		// System.out.println(LibSample3.INSTANCE.Hello(new
		// GoString.ByValue("jack")).str);
		System.out.println(LibSample3.INSTANCE.Hello(new JNAGoType.GoString.ByValue("jack")));
		Thread.sleep(10000L);
	}

}